﻿using HenuAlbum.Identity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace HenuAlbum.Models
{
    public class Notification
    {
        
        public int Id { get; set; }

        [Required]
        [MaxLength(32)]
        public string Title { get; set; }

        [Required]
        [MaxLength(1024)]
        public string Content { get; set; }

        [Required]
        public bool IsAlert { get; set; }

        [Required]
        public DateTime CreateTime { get; set; }

        public User Creator { get; set; } 

        [Required]
        public int CreatorId { get; set; }
    }
}
